import request from '/@/utils/request';
const headers = {
	onlyData: true,
};
//机构新增
export const institutionAddApi = (data: any) => {
	return request({
		url: `/manage/institutionInfo/saveInfo`,
		method: 'post',
		headers: {
			...headers,
			showSuccessMessage: true,
		},
		data,
	});
};
//分页查询
export const institutionInfoPageApi = (params: any) => {
	return request({
		url: `/manage/institutionInfo/page`,
		method: 'get',
		params,
		headers,
	});
};
//详情
export const institutionInfoDetailApi = (params: any) => {
	return request({
		url: `/manage/institutionInfo/getDetailInfoById`,
		method: 'get',
		headers,
		params,
	});
};
//专家删除
export const institutionInfoDeleteApi = (params: any) => {
	return request({
		url: `/manage/institutionInfo/deleteInfo`,
		method: 'DELETE',
		headers: {
			showSuccessMessage: true,
			onlyData: true,
		},
		params,
	});
};
